/*管理员相关*/
import request from "@/utils/request";

//管理员登录
export function adminLogin(data){
    return request({
        url:'/login/adminLogin',
        method:'post',
        data
    })
}

//获取当前登录的管理员的信息
export function getNowAdminInfo(data){
    return request({
        url:'/admin/getNowAdminInfo',
        method:'post',
        data
    })
}

//获取全部管理员信息
export function getAllAdminInfo(){
    return request({
        url:'/admin/getAllAdminInfo',
        method:'post',
    })
}

//修改管理员信息
export function updateAdminInfo(data){
    return request({
        url:'/admin/updateAdminInfo',
        method:'post',
        data
    })
}

//删除管理员
export function deleteAdminByID(data){
    return request({
        url:'/admin/deleteAdminByID',
        method:'post',
        data
    })
}

//添加管理员
export function addAdmin(data){
    return request({
        url:'/admin/addAdmin',
        method:'post',
        data
    })
}












